package entity;

/**
 * 用于响应前端查询留言的实体类
 */
public class MessageVo {
    private Integer id;         //留言id
    private Integer user_id;    //用户id
    private String msg_content; //用户留言内容
    private String create_time; //发布时间
    private String nickname;
    private String gender;

    public MessageVo() {
    }

    public MessageVo(Integer id, Integer user_id, String msg_content, String create_time, String nickname, String gender) {
        this.id = id;
        this.user_id = user_id;
        this.msg_content = msg_content;
        this.create_time = create_time;
        this.nickname = nickname;
        this.gender = gender;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getMsg_content() {
        return msg_content;
    }

    public void setMsg_content(String msg_content) {
        this.msg_content = msg_content;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "MessageVo{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", msg_content='" + msg_content + '\'' +
                ", create_time='" + create_time + '\'' +
                ", nickname='" + nickname + '\'' +
                ", gender='" + gender + '\'' +
                '}';
    }
}
